package block;

public class Person {
    public static int total;
    private int age;

    static {
        System.out.println("默认初始值：total = " + total);
        total = 100;
        System.out.println("total = " + total);
    }

    {
        System.out.println("默认初始值：age = " + age);
        age = 18;
        total = 600;
        System.out.println("age = " + age);
    }

    public Person() {
        System.out.println("调用了构造器");
    }

}
